export async function getUserInfo(token) {
    const res = fetch('/api/user/getUserInfo', {
            method: 'POST',
            // credentials: 'include',
            headers: {
                Authorization: `Bearer${token}`
            }
        }).then(response => response.json())
        .then(data => {
            return data
        })
    return res
}